import Index from '@/views/index.vue'
// import Button from '@/views/Button/button.vue'
// import Collapse from '@/views/Collapse/collapse.vue'
// import Container from '@/views/Container/container.vue'
// import Form from '@/views/form/form.vue'
// import Icon from '@/views/Icon/icon.vue'
// import Input from '@/views/Input/input.vue'
// import Link from '@/views/Link/link.vue'
// import Message from '@/views/Message/message.vue'
// import MessageBox from '@/views/MessageBox/messagebox.vue'
// import Rate from '@/views/rate/rate.vue'
// import Select from '@/views/select/select.vue'
// import Switch from '@/views/switch/switch.vue'
// import Tooltip from '@/views/Tooltip/tooltip.vue'
import {createRouter,createWebHistory} from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw>=[
  {path:'/', name: 'Index', component:Index},
  {path:'/button', name: 'Button', component:()=>import('@/views/Button/button.vue')},
  {path:'/icon', name: 'Icon', component:()=>import('@/views/Icon/icon.vue')},
  {path:'/link', name:'Link', component:()=>import('@/views/Link/link.vue')},
  {path:'/container', name: 'Container', component:()=>import('@/views/Container/container.vue')},
  {path:'/collapse', name:'Collapse', component:()=>import('@/views/Collapse/collapse.vue')},
  {path:'/message', name:'Message', component:()=>import('@/views/Message/message.vue')},
  {path:'/messagebox', name:'MessageBox', component:()=>import('@/views/MessageBox/messagebox.vue')},
  {path:'/tooltip', name:'Tooltip', component:()=>import('@/views/Tooltip/tooltip.vue')},
  {path:'/input',name:'Input',component:()=>import('@/views/Input/input.vue')},
  {path:'/select',name:'Select',component:()=>import('@/views/select/select.vue')},
  {path:'/switch',name:'Switch',component:()=>import('@/views/switch/switch.vue')},
  {path:'/rate',name:'Rate',component:()=>import('@/views/rate/rate.vue')},
  {path:'/form',name:'Form',component:()=>import('@/views/form/form.vue')},
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router